import fetch from '@/utils/fetch';

export function cstOrderAuto(data) {
  return fetch({
    url: '/api/cst_order/auto',
    method: 'post',
    data
  });
}

export function deleteCstOrder(data) {
  return fetch({
    url: '/api/cst_order/delete',
    method: 'post',
    data
  });
}

export function modifyCstOrder(data) {
  return fetch({
    url: '/api/cst_order/modify',
    method: 'post',
    data
  });
}

export function cstOrderList(data) {
  return fetch({
    url: '/api/cst_order/list',
    method: 'post',
    data
  });
}

export function cstOrderModifyLine(data) {
  return fetch({
    url: '/api/cst_order/modifyLine',
    method: 'post',
    data
  });
}

export function cstOrderLineList(data) {
  return fetch({
    url: '/api/cst_order/query_not_hw_line_list',
    method: 'post',
    data
  });
}

export function cstOrderLineInfo(data) {
  return fetch({
    url: '/api/cst_order/query_not_hw_line_detail',
    method: 'post',
    data
  });
}

export function delCstOrderLine(data) {
  return fetch({
    url: '/api/cst_order/deleteLine',
    method: 'post',
    data
  });
}

export function prodModify(data) {
  return fetch({
    url: '/api/cst_order/prodModify',
    method: 'post',
    data
  });
}

export function delCstLineProduct(data) {
  return fetch({
    url: '/api/cst_line/deleteProd',
    method: 'post',
    data
  });
}

export function cstOrderQueryHead(data) {
  return fetch({
    url: '/api/cst_order/query_head',
    method: 'post',
    data
  });
}

//订单下达相关接口
export function orderStartupList(data) {
  return fetch({
    url: '/api/cst_order/order_startup_list',
    method: 'post',
    data
  });
}

export function orderStartup(data) {
  return fetch({
    url: '/api/cst_order/order_startup',
    method: 'post',
    data
  });
}

export function orderNotEnd(data) {
  return fetch({
    url: '/api/cst_order/order_not_end',
    method: 'post',
    data
  });
}

export function orderRestartup(data) {
  return fetch({
    url: '/api/cst_order/order_restartup',
    method: 'post',
    data
  });
}

export function orderStartupStop(data) {
  return fetch({
    url: '/api/cst_order/order_startup_stop',
    method: 'post',
    data
  });
}

export function autoFromQuote(data) {
  return fetch({
    url: '/api/cst_order/auto_from_quote',
    method: 'post',
    data
  });
}

export function orderAssociate(data) {
  return fetch({
    url: '/api/customerOrder/order/associate',
    method: 'post',
    data
  });
}
